<?php defined('_JEXEC') or die('Restricted access'); ?>
<?php JHTML::_('behavior.tooltip'); ?>
<?php
	// Set toolbar items for the page
	$edit		= JRequest::getVar('edit',true);
	$text = !$edit ? JText::_( 'New' ) : JText::_( 'Edit' );
	JToolBarHelper::title(   JText::_( strtoupper('Htbn_cong_ty') ).': <small><small>[ ' . $text.' ]</small></small>' );
	JToolBarHelper::save();
	if (!$edit)  {
		JToolBarHelper::cancel();
	} else {
		// for existing items the button is renamed `close`
		JToolBarHelper::cancel( 'cancel', 'Close' );
	}
?>
<script language="javascript" type="text/javascript">
	function submitbutton(pressbutton) {
		var form = document.adminForm;
		if (pressbutton == 'cancel') {
			submitform( pressbutton );
			return;
		}

		// do field validation
		submitform( pressbutton );
	}
</script>
<form action="<?php echo $this->action; ?>" method="post" name="adminForm" id="adminForm">
<div class="col width-70">
	<fieldset class="adminform">
		<legend><?php echo JText::_( 'Details' ); ?></legend>
  <table class="admintable">
    <tr>
      <td width="100" align="right" class="key"><label for="ten_cong_ty"> <?php echo JText::_( 'FIELD_TEN_CONG_TY' ); ?>: </label>
      </td>
      <td><input class="text_area" type="text" name="ten_cong_ty" id="ten_cong_ty" size="72" maxlength="250" value="<?php echo $this->htbn_cong_ty->ten_cong_ty;?>" />
      </td>
    </tr>

	<tr>
      <td width="100" align="right" class="key"><label for="dia_chi"> <?php echo JText::_( 'FIELD_DIA_CHI' ); ?>: </label>
      </td>
      <td><input class="text_area" type="text" name="dia_chi" id="dia_chi" size="72" maxlength="250" value="<?php echo $this->htbn_cong_ty->dia_chi;?>" />
      </td>
    </tr>

	<tr>
      <td width="100" align="right" class="key"><label for="email"> <?php echo JText::_( 'FIELD_EMAIL' ); ?>: </label>
      </td>
      <td><input class="text_area" type="text" name="email" id="email" size="72" maxlength="250" value="<?php echo $this->htbn_cong_ty->email;?>" />
      </td>
    </tr>

	<tr>
      <td width="100" align="right" class="key"><label for="so_dien_thoai"> <?php echo JText::_( 'FIELD_SO_DIEN_THOAI' ); ?>: </label>
      </td>
      <td><input class="text_area" type="text" name="so_dien_thoai" id="so_dien_thoai" size="72" maxlength="250" value="<?php echo $this->htbn_cong_ty->so_dien_thoai;?>" />
      </td>
    </tr>

	<tr>
      <td width="100" align="right" class="key"><label for="fax"> <?php echo JText::_( 'FIELD_FAX' ); ?>: </label>
      </td>
      <td><input class="text_area" type="text" name="fax" id="fax" size="72" maxlength="250" value="<?php echo $this->htbn_cong_ty->fax;?>" />
      </td>
    </tr>

	<tr>
      <td width="100" align="right" class="key"><label for="nguoi_dai_dien"> <?php echo JText::_( 'FIELD_NGUOI_DAI_DIEN' ); ?>: </label>
      </td>
      <td><input class="text_area" type="text" name="nguoi_dai_dien" id="nguoi_dai_dien" size="72" maxlength="250" value="<?php echo $this->htbn_cong_ty->nguoi_dai_dien;?>" />
      </td>
    </tr>
  </table>
</fieldset>
</div>
<div class="col width-30">
	<?php
			echo $this->pane->startPane("params-pane");
			$title = JText::_( strtoupper('Parameters') );
			$title1 = JText::_( strtoupper('Parameters') );
			echo $this->pane->startPanel( $title1, "detail-page" );?>
			<table align="center">
				<tr>
      <td valign="top" align="right" class="key"><?php echo JText::_( 'FIELD_PUBLISHED' ); ?>: </td>
      <td><?php echo $this->lists['published']; ?> </td>
    </tr>

	<tr>
      <td valign="top" align="right" class="key"><label for="created"> <?php echo JText::_( 'FIELD_CREATED' ); ?>: </label>
      </td>
      <td colspan="2" valign="middle"><?php echo JHTML::_('calendar', $this->lists['created'], 'created', 'created', "%Y-%m-%d %H:%M:%S", array('class'=>'inputbox', 'size'=>'25',  'maxlength'=>'45')); ?> </td>
    </tr>

	<tr>
      <td valign="top" align="right" class="key"><label for="created"> <?php echo JText::_( 'FIELD_MODIFIED' ); ?>: </label>
      </td>
      <td colspan="2" valign="middle"><?php echo JHTML::_('calendar', $this->lists['modified'], 'modified', 'modified', "%Y-%m-%d %H:%M:%S", array('class'=>'inputbox', 'size'=>'25',  'maxlength'=>'45')); ?> </td>
    </tr>

	<tr>
      <td valign="top" align="right" class="key"><label for="ordering"> <?php echo JText::_( 'FIELD_ORDERING' ); ?>: </label>
      </td>
      <td><?php echo $this->lists['ordering']; ?> </td>
    </tr> 
			</table>
		<?php	echo $this->pane->endPanel();	
			echo $this->pane->startPanel( $title, "detail-page" );
			echo $this->params->render('params');
			echo $this->pane->endPanel();
			echo $this->pane->endPane();
		?>	
</div>   
  <div class="clr"></div>
  <input type="hidden" name="option" value="com_htbn_cong_ty" />
  <input type="hidden" name="cid[]" value="<?php echo $this->htbn_cong_ty->wts_htbn_cong_ty_id; ?>" />
  <input type="hidden" name="task" value="" />
  <?php echo JHTML::_( 'form.token' ); ?>
</form>
